package com.aiolos.springboot.stepbystep.service.impl;

import com.aiolos.springboot.stepbystep.model.AyBook;
import com.aiolos.springboot.stepbystep.repository.AyBookRepository;
import com.aiolos.springboot.stepbystep.service.IAyBookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AyBookServiceImpl implements IAyBookService {

    @Resource
    private AyBookRepository bookRepository;

    @Override
    public AyBook save(AyBook ayBook) {
        return bookRepository.save(ayBook);
    }
}
